package cn.tedu.v1.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 处方
 * </p>
 *
 * @author tedu.cn
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("prescription")
public class Prescription implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("patientId")
    private Integer patientId;

    @TableField("doctorId")
    private Integer doctorId;

    @TableField("start")
    private Integer start;

    @TableField("end")
    private Integer end;

    @TableField("sumcount")
    private Integer sumcount;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("status")
    private Integer status;

    @TableField("info")
    private String info;

    @TableField(exist = false)
    private List<PrescriptionSum> prescriptionSums;

    @TableField("sumprice")
    private Integer sumprice;

}

